package com.cs.flyweight;
/**
 * @author Sam.Lee E-mail:lishanman2007@163.com
 * @version Created：Aug 29, 2011 10:10:20 AM
 */
public class Main {
	public static void main(String[] args) {
		CD cd1 = new CD();
		cd1.setTitle("cd1");
		cd1.setYear("1997");
		cd1.setArtist(FlyweightFactory.getArtist("黎明"));
		
		CD cd2 = new CD();
		cd2.setTitle("cd2");
		cd2.setYear("1998");
		cd2.setArtist(FlyweightFactory.getArtist("刘德华"));
		
		CD cd3 = new CD();
		cd3.setTitle("cd3");
		cd3.setYear("1999");
		cd3.setArtist(FlyweightFactory.getArtist("黎明"));
		
	}
}
